<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>回收大分类</title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="format-detection" content="telephone=no">
	<link rel="stylesheet" href="${s.base}/js/layui/css/layui.css" media="all" />
	<link rel="stylesheet" href="${s.base}/css/base/base.css?123456" media="all" /></head>
<body class="childrenBody">
<form class="layui-form">
	<input type="hidden" id="id" name="id" value="${recoveryCircleOrder.id}" />

	<#if recoveryCircleOrder?? && recoveryCircleOrder.wasteId != null && recoveryCircleOrder.wasteId != "" >
	<div class="layui-form-item layui-row layui-col-xs12">
		<label class="layui-form-label">
			<span class="red">*</span>&nbsp;&nbsp;状态</label>
		<div class="layui-input-block">
			<#if recoveryCircleOrder?? && recoveryCircleOrder.status == '1'>
			<input type="text" class="layui-input" name="name" value="待处理" disabled/>
			<#else>
			<input type="text" class="layui-input" name="name" value="已处理" disabled/>
			</#if>
		</div>
	</div>
	</#if>

	<div class="layui-form-item layui-row layui-col-xs12">
		<label class="layui-form-label">
			<span class="red">*</span>&nbsp;&nbsp;联系人</label>
		<div class="layui-input-block">
			<input type="text" class="layui-input" name="name" value="${recoveryCircleOrder.name}" disabled/>
		</div>
	</div>
	<div class="layui-form-item layui-row layui-col-xs12">
		<label class="layui-form-label">
			<span class="red">*</span>&nbsp;&nbsp;联系方式</label>
		<div class="layui-input-block">
			<input type="text" class="layui-input" name="phone" value="${recoveryCircleOrder.phone}" disabled/>
		</div>
	</div>
	<div class="layui-form-item layui-row layui-col-xs12">
		<label class="layui-form-label">
			<span class="red">*</span>&nbsp;&nbsp;上门地址</label>
		<div class="layui-input-block">
			<input type="text" class="layui-input" name="address" value="${recoveryCircleOrder.address}" disabled/>
		</div>
	</div>
	<div class="layui-form-item layui-row layui-col-xs12">
		<label class="layui-form-label">
			<span class="red">*</span>&nbsp;&nbsp;预约时间</label>
		<div class="layui-input-block">
			<input type="text" class="layui-input" name="reserveTime" value="${recoveryCircleOrder.reserveTime?string('yyyy-MM-dd hh:mm:ss')}" disabled/>
		</div>
	</div>
	<div class="layui-form-item layui-row layui-col-xs12">
		<label class="layui-form-label">
			<span class="red"></span>&nbsp;&nbsp;图片</label>
		<div class="layui-input-block">
			<div class="layui-upload">
				<blockquote class="layui-elem-quote layui-quote-nm" style="margin-top: 10px;">
					预览图：
					<div class="layui-upload-list" id="demo2">
						<#list imageArr as image>
						<img src="${image}" class="layui-upload-img">
						</#list>
					</div>
				</blockquote>
			</div>
		</div>
	</div>

	<div class="layui-form-item layui-row layui-col-xs12">
		<label class="layui-form-label">
			&nbsp;&nbsp;回收内容</label>
		<div class="layui-input-block">
			<textarea class="layui-textarea" name="content" lay-verify="content">${recoveryCircleOrder.content}</textarea>
		</div>
	</div>

	<!-- 处理意见 -->
	<div class="layui-form-item layui-row layui-col-xs12">
		<label class="layui-form-label">
			<span class="red">*</span>&nbsp;&nbsp;回收员</label>
		<div class="layui-input-block">
			<select class="form-control" name="wasteMemberId" lay-verify="required" id="wasteMemberId"></select>
		</div>
	</div>

	<div class="layui-form-item layui-row layui-col-xs12">
		<label class="layui-form-label">
			&nbsp;&nbsp;处理意见</label>
		<div class="layui-input-block">
			<textarea class="layui-textarea" name="manageContent" lay-verify="content">${recoveryCircleOrder.manageContent}</textarea>
		</div>
	</div>

	<div class="layui-form-item layui-row layui-col-xs12">
		<div class="layui-input-block">
			<#if recoveryCircleOrder?? && recoveryCircleOrder.wasteId == null || recoveryCircleOrder.wasteId == "" >
			<button class="layui-btn layui-btn-sm" lay-submit="" lay-filter="submitBtn">确定</button>
			</#if>
			<button type="reset" class="layui-btn layui-btn-sm layui-btn-primary cancel">取消</button>
		</div>
	</div>
</form>
<script type="text/javascript" src="${s.base}/js/layui/layui.js"></script>
<script type="text/javascript" src="${s.base}/js/base/base.js"></script>
<script type="text/javascript">layui.use(['form', 'jquery', 'baseUtil','fileUtil', 'pageUtil', 'dialogUtil'],
    function() {
        var form = layui.form,
            $ = layui.jquery,
            baseUtil = layui.baseUtil,
            dialogUtil = layui.dialogUtil,
            fileUtil = layui.fileUtil,
            pageUtil = layui.pageUtil;

        pageUtil.initDictByUrl("/recoveryWasteMember/acceptSelect","recovery_waste_member_id",
            function(dictData) {
                pageUtil.showDict($("#wasteMemberId"), pageUtil.aceeptDictContentList(dictData, "recovery_waste_member_id"), "请选择回收员","${recoveryCircleOrder.wasteId}");
            });

        form.on('submit(submitBtn)',
            function(data) {
            	var wasteMemberId = data.field.wasteMemberId;
				var manageContent = data.field.manageContent;
                baseUtil.postMethodResult("/recoveryCircleOrder/updateWasteMemberId", {ids:data.field.id,wasteMemberId:wasteMemberId,manageContent:manageContent},
                    function(result) {
                        parent.location.reload();
                    });
                return false;
            });
    });</script>
</body>

</html>